
namespace Himall.Entity
{
    using System;
    using System.Collections.Generic;
    /// <summary>
    /// 优惠券信息表
    /// </summary>
    public partial class CouponInfo:BaseModel
    {
    
        long _id;
        public new long Id { get{ return _id; } set{ _id=value; base.Id = value; } }
        /// <summary>
        /// 
        /// </summary>
        public long ShopId { get; set; }
        /// <summary>
        /// 店铺名称
        /// </summary>
        public string ShopName { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 最大可领取张数
        /// </summary>
        public int PerMax { get; set; }
        /// <summary>
        /// 订单金额（满足多少钱才能使用）
        /// </summary>
        public decimal OrderAmount { get; set; }
        /// <summary>
        /// 发行张数
        /// </summary>
        public int Num { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public System.DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public System.DateTime EndTime { get; set; }
        /// <summary>
        /// 优惠券名称
        /// </summary>
        public string CouponName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public System.DateTime CreateTime { get; set; }
        /// <summary>
        /// 领取方式 0 店铺首页 1 积分兑换 2 主动发放
        /// </summary>
        public CouponReceiveType ReceiveType { get; set; }
        /// <summary>
        /// 所需积分
        /// </summary>
        public int NeedIntegral { get; set; }
        /// <summary>
        /// 兑换截止时间
        /// </summary>
        public Nullable<System.DateTime> EndIntegralExchange { get; set; }
        /// <summary>
        /// 积分商城封面
        /// </summary>
        public string IntegralCover { get; set; }
        /// <summary>
        /// 是否同步到微信
        /// </summary>
        public int IsSyncWeiXin { get; set; }
        /// <summary>
        /// 微信状态
        /// </summary>
        public int WXAuditStatus { get; set; }
        /// <summary>
        /// 微信卡券记录号 与微信卡券记录关联
        /// </summary>
        public Nullable<long> CardLogId { get; set; }
    
        public virtual ICollection<CouponRecordInfo> Himall_CouponRecord { get; set; } = new HashSet<CouponRecordInfo>();
        public virtual ICollection<CouponSettingInfo> Himall_CouponSetting { get; set; } = new HashSet<CouponSettingInfo>();
        public virtual ICollection<CouponSendByRegisterDetailedInfo> Himall_CouponSendByRegisterDetailed { get; set; } = new HashSet<CouponSendByRegisterDetailedInfo>();
        public virtual ICollection<SendmessagerecordCouponInfo> Himall_SendmessagerecordCoupon { get; set; } = new HashSet<SendmessagerecordCouponInfo>();
        public virtual ShopInfo Himall_Shops { get; set; }
    }
}
